If you have not read the part 1 of R data analysis series kindly go through the following article where we discussed about Many Ways of…